package net.sevear.chaos.event
{
	import flash.events.Event;
	
	import net.sevear.chaos.vo.TrackInfo;
	
	public class SwitchURLEvent extends Event
	{
		public static const SWITCH_URL:String = "Swithch another url";
		private var _track:TrackInfo;
		private var _origUrl:String;
		private var _switchURL:String;
		public function SwitchURLEvent(trackInfo:TrackInfo,origUrl:String,switchURL:String)
		{
			_track = trackInfo;
			_origUrl = origUrl;
			_switchURL = switchURL;
			super(SWITCH_URL);
		}
		
		public function get track():TrackInfo{
			return _track;
		}
		
		public function get origURL():String{
			return _origUrl;
		}
		
		public function get switchURL():String{
			return _switchURL;
		}
	}
}